Component({
    properties: {
        cancelText: {
            type: String,
            value: "取消"
        },
        confirmText: {
            type: String,
            value: "确定"
        }
    },
    data: {},
    ready: function(e) {
        if (!this.selectComponent) throw new Error("小程序sdk暂不支持节点操作selectComponent");
        this.baseModal = this.selectComponent("#baseModal");
    },
    methods: {
        show: function() {
            this.triggerEvent("scrollEvent", {
                noScroll: !0
            }), this.baseModal.showModal();
        },
        hide: function() {
            this.triggerEvent("scrollEvent", {
                noScroll: !1
            }), this.baseModal.hideModal();
        },
        _cancelModal: function() {
            this.hide(), this.triggerEvent("cancelEvent");
        },
        bindTextAreaBlur: function(e) {
            this.setData({
                feedback: e.detail.value
            });
        },
        _confirmModal: function(e) {
            this.triggerEvent("confirmEvent", {
                feedback: this.data.feedback
            }), this.hide();
        }
    }
});